public class Test {
    public static void main(String[] args) {
        MyArray<Integer> myArray=new MyArray<>();
        myArray.setPos(0,123);
        myArray.setPos(2,654);
        System.out.println(myArray.getPos(0));
        MyArray<String> myArray2=new MyArray<>();
        myArray2.setPos(3, "asd");
        myArray2.setPos(6,"osdk");
        int li=myArray.getPos(2);
        String str= myArray2.getPos(6);
        System.out.println(li);
        System.out.println(str);
    }
}
